﻿using System;
using PumpStationClient.PumpService;

namespace PumpStationClient
{
    public class PumpStationCallback : IPumpStationServiceCallback
    {
        public PumpStation Station { get; set; }

        public void OnStartPump(int pumpIndex)
        {
            Console.WriteLine("Starting pump: " + pumpIndex);
            Station.Pumps[pumpIndex].Running = true;
        }

        public void OnStopPump(int pumpIndex)
        {
            Console.WriteLine("Stopping pump: " + pumpIndex);
            Station.Pumps[pumpIndex].Running = false;
        }
    }
}